package org.jivesoftware.smackx.receipts;

import java.util.List;
import java.util.Map;
import org.jivesoftware.smack.packet.PacketExtension;
import org.jivesoftware.smack.provider.EmbeddedExtensionProvider;

public class DeliveryReceipt
  implements PacketExtension
{
  public static final String NAMESPACE = "urn:xmpp:receipts";
  public static final String ELEMENT = "received";
  private String id;

  public DeliveryReceipt(String paramString)
  {
    this.id = paramString;
  }

  public String getId()
  {
    return this.id;
  }

  public String getElementName()
  {
    return "received";
  }

  public String getNamespace()
  {
    return "urn:xmpp:receipts";
  }

  public String toXML()
  {
    return "<received xmlns='urn:xmpp:receipts' id='" + this.id + "'/>";
  }

  public static class Provider extends EmbeddedExtensionProvider
  {
    protected PacketExtension createReturnExtension(String paramString1, String paramString2, Map<String, String> paramMap, List<? extends PacketExtension> paramList)
    {
      return new DeliveryReceipt((String)paramMap.get("id"));
    }
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     org.jivesoftware.smackx.receipts.DeliveryReceipt
 * JD-Core Version:    0.6.1
 */